import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      redirect: '/home',
    },
    
    {
      path: '/home',
      name: 'home',
      component: HomeView
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/AboutView.vue')
    },
    {
      path: '/dataType',
      name: 'dataType',
      component: () => import('../views/DataType.vue')
    },
    {
      path: '/particulars',
      name: 'particulars',
      component: () => import('../views/Particulars.vue')
    }
  ]
})

export default router
